<?php

class WechatController extends Admincontroller
{
    private $weObj;
    public function init()
    {
        parent::init();
        Yaf_Loader::import(APPLICATION_PATH . '/library/WechatSDK/wechat.class.php');
//        $options = array(
//            'token'=>'tokenaccesskey', //填写你设定的key
//            'encodingaeskey'=>'encodingaeskey' //填写加密用的EncodingAESKey，如接口为明文模式可忽略
//        );
//        $this->weObj = new Wechat($options);
    }

    public function menuaction(){
        $this->_view->assign("title", '公众号管理');
        $this->_view->assign("activetitle", '自定义菜单');
        $this->_view->assign("parentmenu", '公众号管理');
        $this->_view->assign("action", '自定义菜单');
        $this->_view->display('Wechat/menu');
    }

    public function setmenu(){

    }

}
